package br.org.sosim.process.instructionSet;

public class InstructionSetFactory {
	
	public static InstructionSet getInstructionSet(InstructionSetType type){
		
		switch(type){
		case CPU_BOUND:
			return InstructionSetCpuBound.getInstance();
		case IO_BOUND_1:
			return InstructionSetIoBound1.getInstance();
		case IO_BOUND_2:
			return InstructionSetIoBound2.getInstance();
		case IO_BOUND_3:
			return InstructionSetIoBound3.getInstance();
		case MIXED_1:
			return InstructionSetMixed1.getInstance();
		case MIXED_2:
			return InstructionSetMixed2.getInstance();
		}
		throw new IllegalArgumentException();
		
	}

}
